#include"AlgDijkstraPlugin.h" 
#include<stdio.h>

/*!
\file AlgDijkstraPlugin.cpp
\brief Contains implementation of AlgDijkstraPlugin.
\ingroup Plugins
*/

Algorithm *AlgDijkstraPlugin::createAlgorithm( Graph *g ){
	return new AlgDijkstra(g);
}

bool AlgDijkstraPlugin::canAcceptGraph( Graph *g ){
	bool ok = true;
	for( unsigned int i = 0; i < g->numEdges() && ok; i++ ){
		g->edge(i).label().toDouble(&ok);
	}
	return ok;
}

#include<QtGui>
Q_EXPORT_PLUGIN2(algdijkstraplugin, AlgDijkstraPlugin)